package com.wn.ticket.service.impl;

import com.wn.ticket.entity.Artist;
import com.wn.ticket.mapper.PerformArtistMapper;
import com.wn.ticket.service.PerformArtistService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 查询艺人演出相关信息
 *
 * @author 杜昭进
 * date: 2022/8/29
 */
@Slf4j
@Service
public class PerformArtistServiceImpl implements PerformArtistService {

    @Autowired
    private PerformArtistMapper performArtistMapper;

    /**
     * 根据用户id查询所有收藏的演出
     *
     * @return user
     */
    @Override
    public List<Artist> getByArtistId(int artistId) {
        List<Artist> artists = performArtistMapper.getByArtistId(artistId);
        return artists;
    }
}